package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.AwardDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 获奖信息管理 Mapper 接口
 * </p>
 * @author 34448
 */
@Mapper
public interface AwardMapper extends BaseMapper<AwardDO> {

    @Select("SELECT award_name, COUNT(*) AS count FROM awards GROUP BY award_name")
    List<Map<String, Object>> countAwardsDistribution();
}